package com.yupi.yupicturebackend.model.dto.post;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * 创建帖子（带图片）请求
 */
@Data
@ApiModel(value = "创建帖子（带图片）请求")
public class PostAddWithPictureRequest implements Serializable {

    /**
     * 帖子标题
     */
    @ApiModelProperty(value = "帖子标题", required = true)
    private String title;

    /**
     * 帖子内容
     */
    @ApiModelProperty(value = "帖子内容", required = true)
    private String content;

    /**
     * 图片文件
     */
    @ApiModelProperty(value = "图片文件", required = false)
    private MultipartFile picture;

    /**
     * 图片标签
     */
    @ApiModelProperty(value = "图片标签")
    private String tags;

    private static final long serialVersionUID = 1L;
}
